package video.background.Utils;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class Decrypt {
    static public String numDecrypt(String number) {
        //解密
        try{
            byte[] decryptedBytes = Base64.getMimeDecoder().decode(number);
//            byte[] decryptedBytes = Base64.getDecoder().decode(number);
            String decryptedData = new String(decryptedBytes, StandardCharsets.UTF_8);
            return decryptedData;
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }
}
